package com.yang.o2o.service;

import com.yang.o2o.dto.ShopExecution;
import com.yang.o2o.entity.Shop;

import java.io.File;
import java.io.InputStream;

public interface ShopService {
    /***
     *
     *  分页返回数据
     */
    public ShopExecution getShopList(Shop shopCondition,int pageIndex,int pageSize);
    /**
     * 添加商铺*/
    ShopExecution addShop(Shop shop, InputStream shopImg,String fileName);

    /**
     * 通过店铺Id获取店铺
     * */
    Shop getByShopId(long shopId);

    /**
     * 更新店铺信息*/
    ShopExecution modifyShop(Shop shop,InputStream shopImgInputStream,String fileName);
}
